﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using GovernmentOfficeProject.LevelDataAccessModel;
using GovernmentOfficeProject.LevelDataAccess;
using System.Collections.Generic;

namespace GovernmentOfficeProject.LevelBusinessLogic
{
    public class BLL_SmsOperation
    {
        private static DAL_COM_Sms_Ready dalSmsReady = null;
        public BLL_SmsOperation()
        {
            if (dalSmsReady == null)
                dalSmsReady = new DAL_COM_Sms_Ready();
        }

        public Entity_COM_Sms_Ready getSmsReadyBySRID(int srID)
        {
            return dalSmsReady.getSmsReadyBySRID(srID);
        }

        public List<Entity_COM_Sms_Ready> getSmsReadyList()
        {
            return dalSmsReady.getSmsReadyList();
        }

        public List<Entity_COM_Sms_Ready> getSmsReadyListBysmsRdyEntity(Entity_COM_Sms_Ready smsRdyEntity)
        {
            return dalSmsReady.getSmsReadyListBysmsRdyEntity(smsRdyEntity);
        }

        public bool addSmsReday(Entity_COM_Sms_Ready smsRdyEntity)
        {
            return dalSmsReady.addSmsReday(smsRdyEntity);
        }

        public bool deleteSmsReadyBySRID(int srID)
        {
            return dalSmsReady.deleteSmsReadyBySRID(srID);
        }

        public bool updateSmsReadyBySRIDAndSREntity(decimal srID, Entity_COM_Sms_Ready smsRdyEntity)
        {
            return dalSmsReady.updateSmsReadyBySRIDAndSREntity(srID, smsRdyEntity);
        }

        public bool deleteSmsReadyByCalendarID(decimal calendarId)
        {
            return dalSmsReady.deleteSmsReadyByCalendarID(calendarId);
        }

        public List<Entity_COM_Sms_Ready> getSmsListBySmsEntityAndSendTimeStartEnd(Entity_COM_Sms_Ready smsRdyEntity, string startTime, string endTime)
        {
            return dalSmsReady.getSmsListBySmsEntityAndSendTimeStartEnd(smsRdyEntity, startTime, endTime);
        }
    }
}
